package com.myway.core.common;

import java.util.HashMap;


public enum EtSiteMessagePolicyTypeType {
	产品类("Product"),
	业务通告类("busisnes"),
	团队规定类("Team"),
	其他类("Other"),
	官网规定类("WebSite");

    private final String alias;

    private static HashMap<String, EtSiteMessagePolicyTypeType> map;

    static
    {
        map = new HashMap<String, EtSiteMessagePolicyTypeType>();
        for (EtSiteMessagePolicyTypeType type : EtSiteMessagePolicyTypeType.values()) {
            map.put(type.alias, type);
        }
    }

    EtSiteMessagePolicyTypeType(String alias){
        this.alias = alias;
    }

    @Override
    public String toString()
    {
        return map.get(alias).name();

    }

    public static EtSiteMessagePolicyTypeType valueOfAlias(String alias)
    {
        EtSiteMessagePolicyTypeType type = map.get(alias);

        if (type == null) {
            throw new IllegalArgumentException("Unknown action alias [" + alias + "]");
        }

        return type;
    }

    /**
     * @return the alias
     */
    public String getAlias() {
        return this.alias;
    }
    

}
